Sequence ウォレットは、トランザクションやメッセージの署名に ERC-1271 標準コントラクト署名検証をサポートしています。メッセージは ERC-191 Ethereum Signed Data または ERC-712 Structured Data Signatures でエンコードできます。
/** * @notice Verifies whether the provided signature is valid with respect to the provided hash * @dev MUST return the correct magic value if the signature provided is valid for the provided hash * > The bytes4 magic value to return when signature is valid is 0x1626ba7e : bytes4(keccak256("isValidSignature(bytes32,bytes)")) * @param _hash keccak256 hash that was signed * @param _signatures Signature byte array associated with _data. * Encoded as abi.encode(Signature[], Configs) * @return magicValue Magic value 0x1626ba7e if the signature is valid and 0x0 otherwise */ function isValidSignature( bytes32 _hash, bytes calldata _signatures ) public override virtual view returns (bytes4) { // Validate signatures (bool isValid,) = _signatureValidation(_hash, _signatures); if (isValid) { return SELECTOR_ERC1271_BYTES32_BYTES; } return bytes4(0); }